<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>生成的大纲</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-image: url('https://s2.loli.net/2024/05/13/oDmLOVNUujC8ZMS.jpg');
            background-size: cover;
            background-position: center;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: flex-start; /* 调整内容向上对齐 */
            height: 100vh;
            position: relative;
        }
        .container {
            background-color: rgba(255, 255, 255, 0);
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            width: 900px;
            margin-top: 5vh; /* 调整上边距 */
        }
        h1 {
            margin-bottom: 30px;
            color: #ffffff;
            font-size: 2.5em;
            font-family: "Times New Roman", Times, serif;
        }
        textarea {
            width: 100%;
            height: 400px;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            background-color: #f8f8f8;
            resize: none;
            background-color: rgba(255, 255, 255, 0.8);
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        .button-container {
            margin-top: 20px;
        }
        .button {
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            transition: background-color 0.3s ease;
            display: inline-block;
            margin: 10px;
        }
        .button:hover {
            background-color: #0056b3;
        }
    </style>
</head>
<body>
    <div class="container">
       <h1>生成的大纲</h1>
       <textarea>{{ outline }}</textarea>
       <div class="button-container">
           <a href="/generate_outline" class="button">返回</a>
           <a href="/index" class="button">大纲生成PPT</a>
       </div>
    </div>
</body>
</html>
